import Vue from 'vue'
import VueRouter from 'vue-router'
import home from './modules/home'
import about from './modules/about'
import category from './modules/category'
import Login from '../views/Login'

Vue.use(VueRouter)

const routes = [
  {
    path: '/login',
    component: Login
  },
  ...home,
  ...about,
  ...category
]

const router = new VueRouter({
  routes
})

export default router
